﻿myApp.controller('MarketingProjectController', function ($scope, $http, DUMMY_DATA,$location, $rootScope) {
    $scope.$emit('newPageLoaded', {
        'title': 'Our Marketing Project | ShiJie Property',
        'description': 'Our Marketing Project. We Work Very Closely With Developers. Over 40 Years Experience. Discover The Best New Property Projects For Sale Today!',
        'keywords': 'marketing project, latest marketing projects, property marketing project'
    });

    //$scope.$emit('newPageLoaded', { 'title': 'Penang Realty 世界地產 Our Marketing Project', 'description': 'Enjoy great discount. Check our marketing projects now.' });
    $scope.isAndroid = $rootScope.isAndroid;

    pageInit();

    $scope.sortOption = "Sorted by High to Low";

    var BASE_URL;
    if ($location.host() == "localhost") {
        BASE_URL = $location.protocol() + "://" + "localhost:" + $location.port();
    } else {
        BASE_URL = $location.protocol() + "://" + $location.host();
    }


    $scope.getShareURL = function (p) {
        //  return (BASE_URL + "/property/" + p.propertyid + "/S" + p.Zoning[0]);
        return (BASE_URL + "/property/marketing/details/ " + p.ProjectId);
    }

    $scope.getShareTitle = function (p) {
        return p.ProjectName;
    }

    $scope.getShareDescription = function (p) {
        return p.ProjectDetails;
    }

    $scope.getShareImageURL = function (p) {
        return (p.PropertyURL || "https://c1.staticflickr.com/3/2280/32796837675_cd6b733c19_m.jpg");
    }



    $scope.paginate = function (value) {
        var begin, end, index;
        begin = ($scope.currentPage - 1) * $scope.numPerPage;
        end = begin + $scope.numPerPage;
        index = $scope.searchData.indexOf(value);
        return (begin <= index && index < end);
    };
    $scope.updateFilterOption = function (option, sortedChanged) {
        $scope.SortOptionChanged = sortedChanged;
        //$scope.$apply();
        console.log("HEY!" + option);
        switch (option) {
            case 0:
                $scope.sortOption = "Sorted by High to Low";
                $scope.sortKey = '-ProjectPrice';
                break;
            case 1:
                $scope.sortOption = "Sorted by Low to High";
                $scope.sortKey = 'ProjectPrice';
                break;
            case 2:
                $scope.sortOption = "Sorted by Area (A to Z)";
                $scope.sortKey = 'ProjectName';
                break;
            case 3:
                $scope.sortOption = "Sorted by Area (Z to A)";
                $scope.sortKey = '-ProjectName';
                break;
        }
    }

    $scope.isEmpty = function (obj) {
        for (var i in obj) if (obj.hasOwnProperty(i)) return false;
        return true;
    };

    $scope.is10Selected = true;
    $scope.is25Selected = false;
    $scope.is50Selected = false;
    $scope.is100Selected = false;
    $scope.changePerPage = function (npp) {
        $scope.numPerPage = npp;
        switch (npp) {
            case 10:
                $scope.is10Selected = true;
                $scope.is25Selected = false;
                $scope.is50Selected = false;
                $scope.is100Selected = false;
                break;
            case 25:
                $scope.is10Selected = false;
                $scope.is25Selected = true;
                $scope.is50Selected = false;
                $scope.is100Selected = false;
                break;
            case 50:
                $scope.is10Selected = false;
                $scope.is25Selected = false;
                $scope.is50Selected = true;
                $scope.is100Selected = false;
                break;
            case 100:
                $scope.is10Selected = false;
                $scope.is25Selected = false;
                $scope.is50Selected = false;
                $scope.is100Selected = true;
                break;
        }
        $scope.totalItems = $scope.searchData.length;
        $scope.currentPage = 1;
        $scope.numPerPage = npp;
    }



    function pageInit() {
        if (DUMMY_DATA == true) {
            var dummyData = [{ "ProjectId": "7c32064f-6bce-4992-8ba9-088c229f60b5", "ProjectName": "Jernih Residence 2", "ProjectLocation": "Bukit Mertajam", "ProjectDetails": "Jernih Residence has a total of 3.4 acres land with total a of 39 units landed properties.\nJernih Residence 2 is a low-density and green sanctuary that is located in the beautiful township of Bukit Mertajam. There are only 14 units of luxurious semi-detached houses.\n\n6 units of 2 sty SEMI-DETACHED (TYPE A)\n8 units of 2sty SEMI-DEATCHED (TYPE B)\n\nTYPE A\nLand Area : 3270sqft - 6240sqft\nBuilt Up : 3080sqft (25’x60’)\n\nTYPE B\nLand Area : 2820sqft – 2880sqft\nBuilt Up : 2650sqft (21’x60’)\n\nPROMOTION:\nRM30,000.00 Cash Rebate\nFREE Legal Fee On SPA & LOAN\n\nFor any enquires, PM or contact us at 013-481 7777.", "ProjectPrice": "RM828,000.00 onwards", "CreateDate": "2016-02-02T15:15:54.233", "CreateWho": "707FA990-52F3-4D2D-B053-5937F2942236", "UpdateDate": null, "UpdateWho": "707FA990-52F3-4D2D-B053-5937F2942236", "PropertyURL": "https://farm2.staticflickr.com/1718/24741417166_27e7d46852_o.jpg" }, { "ProjectId": "5e08b95d-0753-44d3-8457-1323d848e3a5", "ProjectName": "Jernih Residence", "ProjectLocation": "Bukit Mertajam", "ProjectDetails": "Jernih Residence, another upcoming gated & guarded residential development project by Jayamas Property Group in Bukit Mertajam, Penang. Comprising 25 units of landed properties, with modern and stylish exterior. It comes with 24-hrs security & CCTV, landscaped garden, BBQ area, management room and children playground.\nSitting on higher ground at 15 meters above sea level, it is only a short drive to BM Maju Junction commercial center (Kg Baru), wet market, Jit Sin High School and hypermarkets.\nLand Tenure: Freehold\nProperty Type : 2-storey bungalow, villa, semi-detached & terrace\nTotal Units : 2 (Bungalow), 2 (Villa), 4 (Semi-Detached), 13 (Terrace)\n\nLAST UNIT AVAILABLE !!!\n\nPROMOTION :\nRM 20,000.00 Cash Rebate\nFOC Legal Fee On SPA & LOAN\n\nFor any enquires, PM or contact us at 013-481 7777.", "ProjectPrice": "RM703,500.00", "CreateDate": "2016-02-02T17:20:34.15", "CreateWho": "707FA990-52F3-4D2D-B053-5937F2942236", "UpdateDate": null, "UpdateWho": "707FA990-52F3-4D2D-B053-5937F2942236", "PropertyURL": "https://farm2.staticflickr.com/1659/24141073924_bf3a398759_o.jpg" }, { "ProjectId": "dfd05a8a-8290-4a50-8969-1af4ebfbf1b3", "ProjectName": "Casa Residence", "ProjectLocation": "Jalan Song Ban Kheng", "ProjectDetails": "Conveniently situated near major locations and routes, commercial and industrial centres, and amenities, CASA is an ideal location for working professionals to come home to.\nIt is also a unique investment opportunity that is stocked full of facilities and nearby attractions to meet the needs and wants of any young working professionals. CASA is one of the estates that features the new Dual Key Concept making it great for many different purposes.\nTenure : Freehold\nNo. of Blocks : 1\nNo. of Storey : 16\nTotal Units : 115\nBuilt-up Area : 1,010 sq.ft. - 1,299 sq.ft.\n\nFacilities\n• - 24 hrs Security\n• - Swimming Pool\n• - Children Playground\n• - BBQ Area\n• - Podium Roof Garden\n• - Lobby & Lift\n• - Community Hall\n• - Gym Room\n\nPROMOTION\n- RM8,000 Down Payment\n- FREE Legal Fee On SPA\n- FREE legal fee on LOAN\n- FREE KWIK Kitchen Cabinet\n- FREE 2 Car Parks\n\nFor any enquiries, PM or contact us at 013-481 7777.", "ProjectPrice": "RM383,800.00 onwards", "CreateDate": "2016-02-02T15:20:20.41", "CreateWho": "707FA990-52F3-4D2D-B053-5937F2942236", "UpdateDate": null, "UpdateWho": "707FA990-52F3-4D2D-B053-5937F2942236", "PropertyURL": "https://farm2.staticflickr.com/1712/24741768086_4423b9fbbf_o.jpg" }, { "ProjectId": "15230137-c7a5-4127-960b-2640dd9c345c", "ProjectName": "CENTRAL-i LIGHT INDUSTRIAL", "ProjectLocation": "NEXT TO  TAMAN PERINDUSTRIAN SAGA JAYA & PRAI INDUSTRIAL PARK (PHASE 3)", "ProjectDetails": "Key Feature:\nComplete infrastructure to Set Up a factory\nPractical layout to fit in a corporate office,a showroom, a warehouse and factory operations area.\n3-Phase Power Supply\nThe building is designed to offer enough space with seamless layout to house all your company functions that include a factory operations area, a warehouse, a showroom and also a corporate office.\nAll your business operations will be located within one centralized location to offer improved efficiency and convenience. You can also showcase your products onsite at the showroom within the same premises.\n\nDOUBLE STOREY DETACHED\nTYPE A - LAND AREA FROM 18,566 SF BUILT UP APP. 8,250 SF\n\nDOUBLE STOREY DETACHED\nTYPE B - LAND AREA FROM 30,472 SF BUILT UP APP. 7,500 SF\n\nDOUBLE STOREY SEMI DETACHED\nTYPE D - LAND AREA FROM 10,500 SF BUILT UP APP. 6,000 SF\n", "ProjectPrice": "RM 2,788,000.00 & ABOVE", "CreateDate": "2015-07-05T20:42:50.44", "CreateWho": "91296169-8651-4A10-8EA5-34A1697F7D28", "UpdateDate": null, "UpdateWho": "91296169-8651-4A10-8EA5-34A1697F7D28", "PropertyURL": "https://farm1.staticflickr.com/538/19434562275_7dc488a730_o.jpg" }, { "ProjectId": "47598a3f-72b6-48fe-bfb4-276c23f501c2", "ProjectName": "Woodsbury Suites", "ProjectLocation": "Jalan Chain Ferry", "ProjectDetails": "Harbour Place will be expanding with a few notable developments, amongst these, commercial and leisure components, an education centre, a commercial promenade and a retail/office tower. With such exciting times just around the corner, Harbour Place is keeping true to its vision of becoming Butterworth's First Metrocity.\nAn established, matured neighbourhood that has so much to offer. From residential precincts to integrated mixed commercial and leisure components, Harbour Place is indeed assured of a future that's full of potential and energy.\nWith the addition of, the upscale living zone, The Tempo to The Metro, The Retro and The Urban zones, Harbour Place is the place to be.\nX-perience\nFrom exciting rooftop facilities to relaxing landscaped areas. Woodsbury will have something to tickle your every fancy. Notable features include the Aqua Gym, a Golf Simulator and broadband internet-readiness.\nFacilities\n• Swimming Pool \n• Golf Simulator \n• Children's Playground \n• Badminton Courts \n• Children's Pool / Wading Pool \n• Steam & Sauna Rooms \n• Seating Deck Area \n• Changing Rooms \n• Games Room \n• Open Lawn & Landscaped Area\nClub House\n• Management Office \n• Media Room \n• Changing Rooms \n• Massage Room \n• Gymnasium \n• Aerobic & Yoga Room \n• Kitchenette & Study Area \n• Music Room \n• Meeting Area\n• Jacuzzi \n• Outdoor Fitness Station \n• Aqua Gym \n• Open Deck Area \n• Viewing Deck Area\nRoof Top\n• Multipurpose Hall & Pantry \n• Open Deck Area \n• Viewing Deck Area \n• BBQ Pit Area \n• Seating Deck Area \n• WiFi Ready\nX-act\nWithout a doubt the most recognizable property in Butterworth, Woodsbury is also conveniently connected to a wealth of public amenities and highly-accessible by a network of existing infrastructure.\nWhen proximity is everything.\n• 5 minutes to Penang Ferry \n• 5 minutes to Penang Sentral \n• 5 minutes to Butterworth-Kulim Expressway\n• 10 minutes to PLUS Highway \n• 15 minutes to Penang Bridge\nX-ceed\nWith emphasis on ideal living environments, the architectural concept and layout of Woodsbury is designed to provide absolute practicality and luxury.\nEquipped with the latest security technologies that include a 24-Hour Security System, Card Access and Communication Home Security, a peaceful and tranquil way of life awaits at Woodsbury.\n\nTenure : Freehold\nNo. of Tower : 2\nNo. of Storey : 38 & 40\nTotal Units : 420\nBuilt-up Area : 550 sq.ft. - 2270 sq.ft.\n\nFor any enquires, PM or contact us at 013-481 7777.", "ProjectPrice": "RM333,500.00 onwards", "CreateDate": "2016-02-02T15:08:59.29", "CreateWho": "707FA990-52F3-4D2D-B053-5937F2942236", "UpdateDate": null, "UpdateWho": "707FA990-52F3-4D2D-B053-5937F2942236", "PropertyURL": "https://farm2.staticflickr.com/1716/24472045090_2eddc7f3b9_o.jpg" }, { "ProjectId": "6917a704-9d02-4593-8739-2f6fbf9a3ca4", "ProjectName": "KAWASAN PERINDUSTRIAN RINGAN ASAS JAYA", "ProjectLocation": "BUKIT MINYAK", "ProjectDetails": "A PRODUCTIVE WORKING ENVIRONMENT WITH EXCELLENT ACCESSBILITY\n\n· Phase 2 of an established industrial park.\n· 5 minutes from Bukit Minyak Industrial Estate.\n· Vibrant business location with an established infrastructure.\n· Nearby amenities for relaxation and business with leisure,retail & commercial hub.\n· Excellent accessbility via major roads and arteries including the North-South Hightway,Penang Bridge and Second Penang \nBridge.\n\n**********\n2 STOREY DETACHED LIGHT INDUSTRIAL\nThe loading bay connects to the spacious ground floor working area.It is a well-ventilated space with an open-concept plan to\nyour manufacturing needs.The office area on the top floor allows you to run your operations comfortably and away from \nmachinery noise.\nLand Area     :    98` x 90`\nBuild-Up        :    50` x 39`\n13 Units Only\n\n**********\n2 STOREY SEMI-D LIGHT INDUSTRIAL (TYPE A)\nThese cluster units give you greater privacy with a dedicated parking space for each lot.Each unit comes with front loading area,ground floor warehouse or industrial space and accompanying office area on the top floor.\nLand Area     :    81` x 75`\nBuild-Up        :    51` x 39`\n56 Units Only\n\n**********\n2 STOREY SEMI-D LIGHT INDUSTRIAL (TYPE B)\nThese limited units are placed side-by-side with front loading bays and perimeter parking.The ground floor working area\nprovides generous space for most industrial needs and the upper office area is closed uff,to allow for a quiet,more conducive\nworking environment.\nLand Area      :    71` x 90`\nBuild-Up         :    51` x 39`\n10 Units Only\n\n**********\n2 STOREY SEMI-D LIGHT INDUSTRIAL (TYPE C)\nLike type B,these units are also side-by-side but are sized for larger operations.The 62` x 39` ground floor provides ample\nroom and excellent ventilation,creating a comfortable working environment for you industrial operations.Accompanying office\narea is situated on the top floor for a quieter environment.\nLand Area       :    77` x 90`\nBuild-Up          :    62` x 39`\n12 Units Only", "ProjectPrice": "From RM1,325,000.00 onwards", "CreateDate": "2015-07-21T18:45:33.017", "CreateWho": "707FA990-52F3-4D2D-B053-5937F2942236", "UpdateDate": null, "UpdateWho": "707FA990-52F3-4D2D-B053-5937F2942236", "PropertyURL": "https://farm1.staticflickr.com/532/19875739652_7ff942a907_o.jpg" }, { "ProjectId": "2316a02a-b37c-4c0c-870a-3e90ddca69c5", "ProjectName": "Sentinelle Ville", "ProjectLocation": "Alma", "ProjectDetails": "A hidden gem so carefully tucked away within a lush green neighbourhood. A captivating lifestyle filled with unprecedented refinement. Coming home to Sentinelle Ville is a luxury exclusively enjoyed by the discerning. Embrace the experience of prestige in the only gated and guarded precinct in BM Utama.\nLocation : Bukit Minyak\nNumber of units : 66\nType of units : 3-storey Semi-D (Gated Community)\nBuilt-up Area : 24’ x 50’/53’/50’ (approx. 3,609 sq ft)\nLand Area : 34’ x 85’ onwards\n\nSecurity Features :\n| Gated & guarded\n| 24-hour security services\n| CCTV surveillance & compound lighting\n| Entry by access card\n| Main door with digital door lock\n| Home alarm system\n| Intercom system (from guard house)\n| High perimeter fencing\n| Designated drop-off & pick-up area\n\nFacilities:\n• Strolling pathway\n• Garden pavilion\n• Wellness square\n• Palm garden\n• Children’s playground\n• Lounge cum function hall\n• Swimming pool\n• Gymnasium\n• BBQ area\n\nFloor Plan:\n| 6 rooms + 1 utility\n| Spacious column free car porch\n| Enhanced spaciousness with high ceiling\n| Wet & dry kitchen\n| Basin with vanity top\n| Split level design improves privacy\n| Sizable master bedroom with space for walk-in closet and en-suite bathroom\n| All bedrooms come with attached bathroom\n| Larger windows provide better ventilation and natural lighting\n| Approx. 1,100 sq ft master suite complete with sizable outdoor terrace and retreat area\n\nPromotion \n5% Rebate to Offset 1st 10%\n2% Additional rebate if SPA signed and Stamped within 21 days.\nFree Legal Fee On SPA (Exclude Transfer)\nFree Legal Fee & S/Duty on Loan\nFree 2 years service charge ( RM400+10% S/Fund)\nFree Home Lift (Refer price list – selected units only)\n\nFor any enquiries,PM us or contact us at 013-481 7777.", "ProjectPrice": "RM1,188,800.00 onwards", "CreateDate": "2016-02-02T15:54:48.073", "CreateWho": "707FA990-52F3-4D2D-B053-5937F2942236", "UpdateDate": null, "UpdateWho": "707FA990-52F3-4D2D-B053-5937F2942236", "PropertyURL": "https://farm2.staticflickr.com/1686/24741942746_329b6eb861_o.png" }, { "ProjectId": "9b3dd0e7-a76c-428d-ad68-4707e2dd4151", "ProjectName": "Taman Sentiasa Mewah", "ProjectLocation": "Kulim", "ProjectDetails": "Type : 2 Storey Terrace House\nLocation : Bandar Kulim\nTenure : Freehold\nSecurity : Gated Community\n• Modern Façade Design\n• Low Density\n• 4 Covered Car Parks\n• Centrally Located – A Short Drive Away From Tesco, C Mart, Giant, Schools, Banks\n• Landscaped Gardens With Jogging Track\n• Fast Access To North South Highways – Butterworth – Kulim Highway\n• Built Up : 1600sqft \n• Land Area : 1660sqft – 3558sqft\n• Total 29 units\n\nPROMOTION \nZERO Down Payment\nFREE Legal Fee & Stamp Duty On SPA \n\nFor any enquires, PM or contact us at 013-481 7777.", "ProjectPrice": "RM488,500.00 onwards", "CreateDate": "2016-02-02T15:04:58.547", "CreateWho": "F908367E-1BF9-4142-BEDC-35CC7BC60B34", "UpdateDate": null, "UpdateWho": "F908367E-1BF9-4142-BEDC-35CC7BC60B34", "PropertyURL": "https://farm2.staticflickr.com/1679/24399848749_8efaa974e9_o.jpg" }, { "ProjectId": "a6f5178f-e820-40ce-9f43-54d1c8ab852a", "ProjectName": "Jesselton Hills (Phase 2)", "ProjectLocation": "Alma", "ProjectDetails": "Lakeside Superlink, a prestigious residential enclave surrounded by mesmerising landscaped gardens and lakes offers you the perfect blend of luxury, comfort and style.\nStatus : CCC Obtained\nLocation : Alma\nNumber of units : 198\nType of units : 2-storey Superlink Home\nBuilt-up Area : 23’ x 50’/60’ (approx. 2,408 sq ft)\nLand Area : Type A – 23′ x 75′ onwards | Type B – 22’ x 75’ onwards\n\nFacilities\n• 24-hour security\n• Thematic landscaped parks\n• Clubhouse facilities*\n• Outdoor fitness stations\n• Children’s fun place\n• Lake garden\n• Jogging trails *Terms & conditions apply\n\nFloor Plan:\n| Extra large built-up area\n| Modern architectural design\n| 4 bedrooms + 1 maidroom\n| Master bedroom with en-suite bathroom\n| High jackroof for better ventilation and lighting\n| Basin with vanity top\n| Dry and wet kitchen\n| Designated wash area\n| Spacious column free car porch\n\nPromotion :\nRebate 5% to offset 1st 10% on SPA\nFree Legal Fee On SPA\nFree Legal Fee & S/Duty on Loan\nFree Clubhouse Usage for 2 years\nFree Security Patrol services (2 years from Oct 2015)\n\nFor any enquiries,PM or contact us at 013-481 7777.", "ProjectPrice": "RM648,000.00 onwards", "CreateDate": "2016-02-02T15:50:49.423", "CreateWho": "707FA990-52F3-4D2D-B053-5937F2942236", "UpdateDate": null, "UpdateWho": "707FA990-52F3-4D2D-B053-5937F2942236", "PropertyURL": "https://farm2.staticflickr.com/1668/24741877076_581203f132_o.jpg" }, { "ProjectId": "f54f3173-a101-4f36-acab-5f11158eeda6", "ProjectName": "BM PARKLANE", "ProjectLocation": "BUKIT MERTAJAM NEXT TO SUNWAY WELLESLEY", "ProjectDetails": "Only RM 2,200 you can own a HOME!!!\n\nEmbrace Vibrant Modern City Living\n\n❀ Prime Location & Accessibility of Bukit Mertajam\n❀ Comprehensive Amenities in surrounding bustling Township\n❀ 24 Hours security to enhance your privacy\n❀ More than 12 types facilities and sky garden for you enjoy\n❀ Embrace Vibrant Modern Living\n❀ 5 modern different layout design to meet your need\n❀ Next to Sunway Wellesley\n\n只要RM2,200您就可以拥有一间家！！！\n\n精心打造浪漫优雅高尚公寓\n\n❀ 坐落于大山脚最策略性地点\n❀ 齐全的设施，繁华的生活环境\n❀ 备有24小时严密的保安设施\n❀ 充满活力的现代生活\n❀ 5款不同概念的设计供您选择，以满足您的需求\n❀ Sunway Wellesley毗邻", "ProjectPrice": "From RM402,000.00 onwards", "CreateDate": "2015-07-21T18:47:37.677", "CreateWho": "707FA990-52F3-4D2D-B053-5937F2942236", "UpdateDate": null, "UpdateWho": "707FA990-52F3-4D2D-B053-5937F2942236", "PropertyURL": "https://farm1.staticflickr.com/511/19875776102_f035bcecf8_o.png" }, { "ProjectId": "585b8107-0ab9-4779-9aa1-6f9f934c065c", "ProjectName": "Tangkas Infinity LIGHT INDUSTRIAL", "ProjectLocation": "Bukit Mertajam", "ProjectDetails": "Positioning Your SME Business for Expansion with a Corporate Factory\nTangkas Infinity, the new development for SMEs is now open for sales.\nWith 20 units available, these light industrial factories are designed for the rapidly evolving SMEs who require an updated premise with the versatility to match their operations’ growth requirements. It is ideally situated in Seberang Perai, strategically between the 2 island bridge crossings with several convenient accesses to the North-South Expressway.\nLocation:\nLot 1277 Jalan Bukit Minyak, Bukit Mertajam\n14000 Seberang Perai Tengah, Pulau Pinang.\nFeatures:\nGenerous HEADROOM allowances\nLevel 1 & 2 – 6m floor to floor height\n3 industrial working floor loading:\n1. Level 1 – 7.5 kN/m2\n2. Level 2 – 5.0 kN/m2\n3. Level 3 – 2.5 kN/m2\nIndividual Service Tower to house services separately\nObstruction free floors to optimise flow and production planning\n30ft well-lit back lane providing additional access to ease factory floor logistics\nRoof covering has a 20 year Anti Perforation Warranty by manufacturer\nPrivate Front Compound with Individual Guard House & Private Parking\nAuto Gate\nAutomatic roller shutters at front and side\n2 Tons Goods Lift\nRain Catchment Tank ~3,000 gallons capacity\nNett Metering TNB ready – Provision to install Solar Panels by Buyer\nAdditional Fire Staircase\nBasic Hose Reel System & Fire Panels\nHigh Speed fibre-broadband ready\nRoof Insulation with Dow® Styrofoam™\nWater storage ~ 1000 gallons\nAdditional water storage (~1000 gallons) for fire fighting system\nElectrical system and support circuits 200Amps/block\nWell-lit back lanes\n\n-Land Area : from 6,000sqft\n-Built Up : 11,981sqft \n\nFor any enquires, PM or contact us at 013-481 7777.", "ProjectPrice": "RM3,663,000.00 onwards", "CreateDate": "2016-02-03T10:18:58.987", "CreateWho": "CDB93E83-8FAB-464D-BAEF-3869B2DE3B2A", "UpdateDate": null, "UpdateWho": "CDB93E83-8FAB-464D-BAEF-3869B2DE3B2A", "PropertyURL": "https://farm2.staticflickr.com/1579/24157254883_0a8f1330f8_o.jpg" }, { "ProjectId": "3d041ae6-1b8e-4ac3-b822-773502842b34", "ProjectName": "Taman Seri Murai", "ProjectLocation": "Tambun", "ProjectDetails": "-Freehold\n-Individual Title\n-Guarded Community\n-Low Density\n-FREE Legal Fees on SPA & Loan Agreement\n\n• 2 Storey Semi-Detached (Type 1)\nPlot No : 732\nLot Area : 2713 sqft\nBuild up Area : 2783 sqft\nOpen Space : 1350 sqft\n\n• 2 Storey Semi-Detached (Type 2)\nPlot No : 731\nLot Area : 2390 sqft\nBuild Up Area : 2573 sqft\nOpen Space : 1172 sqft\n\n• 3 Storey Bungalow\nPlot No : 730\nLot Area : 4058 sqft\nBuild Up Area : 4461 sqft\nOpen Space : 2142 sqft\n\n• 2 Storey Bungalow\nPlot No : 729\nLot Area : 3757 sqft\nBuild Up Area : 2534 sqft\nOpen Space : 2547 sqft\n\nFor any enquires, PM or contact us at 013-481 7777.", "ProjectPrice": "RM898,000.00 onwards", "CreateDate": "2016-02-02T14:13:27.233", "CreateWho": "707FA990-52F3-4D2D-B053-5937F2942236", "UpdateDate": null, "UpdateWho": "707FA990-52F3-4D2D-B053-5937F2942236", "PropertyURL": "https://farm2.staticflickr.com/1513/24138720744_0481b3f9c9_o.png" }, { "ProjectId": "979a174a-b7b2-47cb-b4ad-ad40d23d4d81", "ProjectName": "By The Sea", "ProjectLocation": "Batu Ferringhi", "ProjectDetails": "By The Sea sits on a specially raised deck and comprises 3 blocks of low-rise suites of 5 to 11 storeys high. Designed as a series of terracing blocks, with the green hills as a backdrop, the suites seem to embrace the pool within.\nEvery suite has been meticulously designed to deliver a sense of spaciousness. Each Podium suite has its own private terrace. The Executive suites even have their own roof terrace, where the simple pleasures of a barbecue under the open sky can be enjoyed.\nThe interior layout of each suite at By The Sea has been designed to deliver an inspiring environment, where one can be productive yet not compromise on the luxuries of life. The flow of one space into another has been specially planned to be as efficient, natural and smooth as possible, so much so that the interior walls seem to disappear to make way for one open space.\nDistinctive features of the exclusive suites at By The Sea :\nMost suites have their own 4 ½ feet deep and expansive 40-foot long balcony, to welcome in the refreshing outdoors – the lushness of the landscape, the sounds of the open sea, and the soothing sea-breeze.\nThere is extensive use of oversized glass windows and doors to add to a feeling of liberating openness, from the public spaces to the private spaces.\nIn the 18 limited edition Executive suites, the distinct pleasure of a private roof terrace is all yours.\nIn selected Podium suites, you can even walk directly from your terrace onto the pool deck.\nAnd throughout this unique low density development, you enjoy the distinctiveness and rare privacy made possible only by having not more than 4 suites per floor.\nEvery suite comes fully fitted with cabinetry and major appliances.\nThere is also the assurance of enhanced security enabled by a card access system.\nThe conceptual landscape of By The Sea evokes the nostalgic charm of a seaside kampung, or village, and fosters a sense of community living.\nAs such, all three blocks are surrounded by a rustic landscape of lushly planted gardens comprising betel nut, saga and coconut trees. There are also extended sand zones, a poolside function room with a capacity for 40 people, garden courtyards, and a strolling path by a natural river running right through the centre.\nFor accompanying family members, there’s a children’s play area called the Monkey Park – with its nostalgic rubber tyre swings, sunken trampoline, its very own quaintly tilted tree house and even a guppy pond.\nIn and around the shady landscape of tropical palms and plantings, there are ample quiet pockets complete with outdoor benches and hammocks to work in amidst the heady experience of a tropical seaside landscape.\nThe unique landscape of By The Sea has, at its heart, a small and quaint river that flows right through it, offering an authentic outdoor experience. The meandering Sungei Satu river has been rehabilitated by the cleaning and purification of the river channel..\nIts riverscape of old full-grown trees features a diverse ecosystem of wetland vegetation. Here you will encounter a fascinating and colourful variety of fauna such as butterflies, crickets, various species of birds, small riverine fishes and the occasional monitor lizard.\nThere is also a fully-equipped and state-of-the-art Gym overlooking the river and the surrounding timeless natural beauty; a perfect indication of life at By The Sea.\n\nType of Suites         Sizes\nStandard Suites   - 1030 sq.ft - 1243sq.ft\nPodium Suites      - 1484 sq.ft - 2725sq.ft\nExecutive Suites  - 1920 sq.ft - 3038sq.ft\n\nPROMOTION\nUp to 20% Rebate\nUp to 7% Guarantee Rental Return\nFully Furniture\nFREE Legal Fee & Stamp Duty on SPA\n\nFor any enquires, Pm or contact us at 013-481 7777.", "ProjectPrice": "From RM1.6mil to RM3.2mil", "CreateDate": "2016-02-02T14:21:57.413", "CreateWho": "707FA990-52F3-4D2D-B053-5937F2942236", "UpdateDate": null, "UpdateWho": "707FA990-52F3-4D2D-B053-5937F2942236", "PropertyURL": "https://farm2.staticflickr.com/1710/24140130033_72b3c20b03_o.jpg" }, { "ProjectId": "11713fea-1105-4ed0-9259-b501a63f3cae", "ProjectName": "LOT 9 LIGHT INDUSTRIAL", "ProjectLocation": "NIBONG TEBAL", "ProjectDetails": "3 Storey Semi-D Type (8 units)\nLand Area : from 62.4’x280.5’ (17,454sqft)\nBuilt Up : approx. 42.4’x195’ (10,799sqft)\n\n3 Storey Detached Type (1 unit)\nLand Area : approx. 88.7’x280.5’ (29,018sqft)\nBuilt Up : approx. 48.7’x195’ (12,370sqft)\n\nFor any enquires, PM or contact us at 013-481 7777.", "ProjectPrice": "RM2,830,000.00 onwards", "CreateDate": "2016-02-05T09:48:41.327", "CreateWho": "F908367E-1BF9-4142-BEDC-35CC7BC60B34", "UpdateDate": null, "UpdateWho": "F908367E-1BF9-4142-BEDC-35CC7BC60B34", "PropertyURL": "https://farm2.staticflickr.com/1696/24196945933_a0fb53accf_o.jpg" }, { "ProjectId": "eb31246f-af15-4a1f-86b5-c3eff296430c", "ProjectName": "J-AVENUE LIGHT INDUSTRIAL ", "ProjectLocation": "JURU", "ProjectDetails": "2 Storey Semi-D Corporate Factory\nLand Area : 109'x130' (11,776sqft)\nBuilt Up : 49'x77' (4,992sqft)\n\n2Storey Bungalow Corporate Factory\nLand Area : 106'x142' (13,478sqft)\nBuilt Up : 54'x59' (4,088sqft)\n\nEARLY BIRD PROMOTION\nFREE Legal Fee & Stamp Duty on SPA\nFREE Legal Fee & Stamp Duty on LOAN", "ProjectPrice": "RM2,780,000.00 onwards", "CreateDate": "2016-02-05T10:00:58.147", "CreateWho": "F908367E-1BF9-4142-BEDC-35CC7BC60B34", "UpdateDate": null, "UpdateWho": "F908367E-1BF9-4142-BEDC-35CC7BC60B34", "PropertyURL": "https://farm2.staticflickr.com/1720/24730479811_0ebbd5215a_o.jpg" }, { "ProjectId": "8ff2964e-9d59-46b8-a052-fd6e7700d4ef", "ProjectName": "Ramada Lumut Resort", "ProjectLocation": "Lumut", "ProjectDetails": "Ramada Lumut Resort is Manjung’s first 4-star forest and sea-themed resort, located a few hundred meters from the Lumut waterfront and jetty. Managed by an international hotel operator, this iconic development is a short boat ride away from Pangkor Island, voted one of Malaysia’s 10 best resort islands for its pristine beaches. Perak’s tallest tower, Ramada Lumut Resort, boasts a 4 star resort hotel and 262 luxurious serviced apartments.\nInspired by the weaver bird’s nest, this unique resort is nestled adjacent to a majestic forest reserve that rises 1,084 feet, with panoramic views of the Straits of Malacca. The nest is the iconic heart of the residencies and sits three storeys high as a watchtower, with remarkable views of the resort and the forest.\nThis 35-storey, RM398 million resort offers 9 forest villas complete with plunge pools and a unique forest spa nestled under a spring pool. A 4-storey podium housing a 350 pax banquet hall and multi-functional rooms, all hidden behind a 3-storey waterfall overlooking an infinity pool with the views of the forest and the picturesque grounds, make an ideal setting for weddings and other special occasions.\nThe sunset bar plus an all-day dining restaurant and cafes at the resort make ideal social spaces with great views of the Lumut Naval Base and Pangkor Island. The kids enjoy their own sandy bottom pool with water cannons, a children’s clubhouse and a play pavilion.\nBoasting a totally new and unique experiential environment, Ramada Lumut Resort is an ideal getaway for families to build memorable experiences.\nTucked away in quaint Lumut and accessible via the upcoming West Coast Highway and the international airport in Ipoh, Ramada Lumut Resort offers an alternative and unique destination to local tourists as well as those from ASEAN & East Asian countries.\nOver the past few years, an economic boom in Manjung has fueled Perak’s highest growth rate through massive foreign and local investments. The largest investment has been by Vale of Brazil, one of the world’s largest iron ore producers committing a multiphase RM15 billion investment with RM3 billion already committed.\nWith no 4-star rated hotels and service apartments in the district of Manjung, Ramada Lumut Resort will be uniquely poised to cater to this fast growing business market and to tap the existing MICE market. Add to this, a steady influx of tourists and a solid international hotel chain managing the resort, Ramada Lumut Resort would be the benchmark for new resorts in Malaysia.\n\nPROMOTION PACKAGE\n- Up to 20% Rebate\n- FREE 5 years RCI Member Fee\n- FREE Legal Fee on SPA\n- FREE Legal Fee on Deed of Mutual Covenant\n- FREE Legal Fee on Leaseback Agreement\n- Fully Furnished\n- 14 nights FREE stay per annum\n- ZERO Installment \n- ZERO Maintenance & Sinking Fund during Leaseback\n\n- First 3 years up to 7% Nett Guaranteed Rental Return\n- 4-6 years up to 7.3% Nett Guaranteed Rental Return\n- 7-10 years up to 7.5% Nett Guaranteed Rental Return\n- 11 years onwards 100% of nett profit sharing \n(Terms & Condition Apply)\n\nFor any enquires, Pm or contact us at 013-481 7777.", "ProjectPrice": "RM755,000.00 onwards", "CreateDate": "2016-02-02T15:01:57.727", "CreateWho": "707FA990-52F3-4D2D-B053-5937F2942236", "UpdateDate": null, "UpdateWho": "707FA990-52F3-4D2D-B053-5937F2942236", "PropertyURL": "https://farm2.staticflickr.com/1674/24140615593_5d755bf6de_o.jpg" }];

            $scope.searchData = dummyData;
            console.log($scope.searchData.length);
            $scope.totalItems = $scope.searchData.length;
            $scope.currentPage = 1;
            $scope.numPerPage = 10;
        } else {
            $http.get('api/PropertyDirectory/GetPropertyDirectory').success(function (data) {
                console.log("Marketing Projects: " + JSON.stringify(data));
                $scope.searchData = data;
                $scope.totalItems = $scope.searchData.length;
                $scope.currentPage = 1;
                $scope.numPerPage = 10;
            });
        }
      

       
    }



});